package com.synnex.salesorderportal.dao.entity;

import lombok.*;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;

/**
 * Created by yachao on 18/5/31.
 */
@Embeddable
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class OrderId implements Serializable {

    @Column(name = "order_type")
    private Integer orderType;

    @Column(name = "order_no")
    private Integer orderNo;

    @Override
    public String toString() {
        return "OrderId{" +
                "orderType=" + orderType +
                ", orderNo=" + orderNo +
                '}';
    }
}
